<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>更新游戏</title>
<%@ include file="../common/dev_head.jsp"%>
</head>
<body>
<script type="text/javascript">
$(document).ready(function(){
	$("#mainmenu li").removeClass("active-menu");
	$("#mainmenu>li").eq(3).addClass("active-menu");
});
</script>
	<div id="wrapper">
			<%@ include file="./dev_title.jsp" %>
		<!-- /. NAV SIDE  -->
		<div id="page-wrapper">
			<div id="page-inner">
				<div class="row">
					<div class="col-md-12">
						<h1 class="page-header">审核游戏列表</h1>
					</div>
				</div>
				<div class="row">
					<div class="col-lg-12">
						<div class="panel panel-default">
							<div class="panel-heading"></div>
							<div class="panel-body">
								<c:if test="${!empty paly }">
									<div class="table-responsive">
									<table class="table table-striped table-bordered table-hover"
										id="dataTables-example" style="text-align:center;">
										<thead>
											<tr>
												<th>游戏名</th>
												<th>简介</th>
												<th>类型</th>
												<th>文件</th>
												<th>图片</th>
												<!-- <th>操作</th>  -->
											</tr>
										</thead>
										<tbody>
											<c:forEach items="${paly }" var="p">
												<tr class="odd gradeX">
												<td style="width:100px;">${p.gameName }</td>
												<td style="width:200px;"><span>${p.gameIntroduce }</span></td>
												<td style="width:100px;">
												<c:forEach items="${type }" var="t">
													<c:if test="${t.typeId==p.gameType }">
														${t.typeName }
													</c:if>
												</c:forEach>
												</td>
												<td style="width:100px;" class="center">${p.gameFile }</td>
												<td style="width:100px;" class="center">
													<img src="${pageContext.request.contextPath}/images/games/${p.gameImg}" width="50" height="50" alt="${p.gameName } "/>
												</td>
												<!-- 
												<td style="width:100px;">
													<a href="#"><span class="glyphicon glyphicon-upload">修改</span></a>
												</td>
												 -->
											</tr>
											</c:forEach>
										</tbody>
									</table>
								</div>
								</c:if>
								<c:if test="${empty paly }">
									<h4 class="page-header">暂无审核中的游戏</h4>
								</c:if>
							</div>
							
						</div>
					</div>
					<!-- /. PAGE INNER  -->
				</div>
				<!-- /. PAGE WRAPPER  -->
			</div>
		</div>
		
	</div>
		<!-- /. WRAPPER  -->
</body>
</html>